<template>
  <div class="change">
    <div v-for="item in changeData" :key="item.id" class="change-normal">
      <p style="font-weight: bold">换购</p>
      <p>
        {{item.name}} <span>{{item.price | setPrice}}</span><span style="color: orange">（已省）{{item.cut | setPrice}}</span>
      </p>
      <p style="color: #666">选购 ></p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["changeData"],
  filters: {
    setPrice(val) {
      return "￥" + val;
    },
  },
};
</script>

<style scoped>
.change {
  margin-top: 10px;
}
.change-normal{
  display: flex;
  justify-content: space-between;
  padding-right: 10px;
  margin-top: 5px;
}
p {
  font-size: 10px;
}
</style>